
import request from '@/utils/request'

// 查询车辆列表
export function listCar(query) {
  return request({
    url: '/system/huishou/recoveryVehicle/list',
    method: 'get',
    params: query
  })
}

// 查询车辆详细
export function getCar(id) {
  return request({
    url: '/system/huishou/recoveryVehicle/' + id,
    method: 'get'
  })
}

// 新增车辆列表
export function addCar(data) {
  return request({
    url: '/system/huishou/recoveryVehicle',
    method: 'post',
    data: data
  })
}

// 修改车辆列表
export function updateCar(data) {
  return request({
    url: '/system/huishou/recoveryVehicle',
    method: 'put',
    data: data
  })
}

// 删除车辆列表
export function delCar(id) {
  return request({
    url: '/system/huishou/recoveryVehicle/' + id,
    method: 'delete'
  })
}

// 查询预约订单列表
export function appointmentOrderlist(query) {
  return request({
    url: '/system/huishou/appointmentOrder/list',
    method: 'get',
    params: query
  })
}
// 查询预约订单详细
export function appointmentOrderDetail(id) {
  return request({
    url: '/system/huishou/appointmentOrder/' + id,
    method: 'get'
  })
}

// 修改预约订单
export function updateAppointmentOrder(form) {
  return request({
    url: '/system/huishou/appointmentOrder',
    method: 'put',
    data: form
  })
}

// 新增预约订单
export function addAppointmentOrder(form) {
  return request({
    url: '/system/huishou/appointmentOrder',
    method: 'post',
    data: form
  })
}
// 删除预约订单
export function appointmentOrderDel(id) {
  return request({
    url: '/system/huishou/appointmentOrder/' + id,
    method: 'delete'
  })
}

// 结算订单删除
export function settlementOrderDel(id) {
  return request({
    url: '/system/huishou/settlementOrder/' + id,
    method: 'delete'
  })
}
// 查询结算订单列表
export function settlementOrderlist(query) {
  return request({
    url: '/system/huishou/settlementOrder/list',
    method: 'get',
    params: query
  })
}

// 新增结算订单
export function addSettlementOrder(form) {
  return request({
    url: '/system/huishou/settlementOrder',
    method: 'post',
    data: form
  })
}

// 修改结算订单列表
export function updateSettlementOrder(form) {
  return request({
    url: '/system/huishou/settlementOrder',
    method: 'put',
    data: form
  })
}

// 查询结算订单详细
export function settlementOrderDetail(id) {
  return request({
    url: '/system/huishou/settlementOrder/' + id,
    method: 'get'
  })
}

// 查询定期回收列表
export function regularRecoveryList(query) {
  return request({
    url: '/system/huishou/regularRecovery/list',
    method: 'get',
    params: query
  })
}

// 查询科普列表
export function wasteNewslist(query) {
  return request({
    url: '/system/huishou/wasteNews/list',
    method: 'get',
    params: query
  })
}
// 查询科普列表详细
export function asteNewsDetail(id) {
  return request({
    url: '/system/huishou/wasteNews/' + id,
    method: 'get'
  })
}

// 新增科普列表
export function addwasteNews(data) {
  return request({
    url: '/system/huishou/wasteNews',
    method: 'post',
    data: data
  })
}

// 修改科普列表
export function updatewasteNews(data) {
  return request({
    url: '/system/huishou/wasteNews',
    method: 'put',
    data: data
  })
}

// 删除科普列表
export function delwasteNews(id) {
  return request({
    url: '/system/huishou/wasteNews/' + id,
    method: 'delete'
  })
}

// 查询平台信息列表
export function platInfolist(query) {
  return request({
    url: '/system/huishou/platInfo/list',
    method: 'get',
    params: query
  })
}
// 修改平台信息列表
export function updateplatInfo(data) {
  return request({
    url: '/system/huishou/platInfo',
    method: 'put',
    data: data
  })
}

// 新增平台信息列表
export function addplatInfo(data) {
  return request({
    url: '/system/huishou/platInfo',
    method: 'post',
    data: data
  })
}

// 查询任务列表
export function userTasklist(query) {
  return request({
    url: '/system/huishou/userTask/list',
    method: 'get',
    params: query
  })
}
// 查询任务列表详细
export function userTaskDetail(id) {
  return request({
    url: '/system/huishou/userTask/' + id,
    method: 'get'
  })
}

// 新增任务列表
export function adduserTask(data) {
  return request({
    url: '/system/huishou/userTask',
    method: 'post',
    data: data
  })
}

// 修改任务列表
export function updateuserTask(data) {
  return request({
    url: '/system/huishou/userTask',
    method: 'put',
    data: data
  })
}

// 删除任务列表
export function deluserTask(id) {
  return request({
    url: '/system/huishou/userTask/' + id,
    method: 'delete'
  })
}

// 完成记录列表
export function userTaskCompletelist(query) {
  return request({
    url: '/system/huishou/userTaskComplete/list',
    method: 'get',
    params: query
  })
}

// 提现记录
export function withdrawRecord(query) {
  return request({
    url: '/system/huishou/withdrawRecord/list',
    method: 'get',
    params: query
  })
}
// 提现记录
export function withdrawRecordedit(query) {
  return request({
    url: '/system/huishou/withdrawRecord/edit',
    method: 'get',
    params: query
  })
}

// 查询活动列表
export function wasteActivitylist(query) {
  return request({
    url: '/system/huishou/wasteActivity/list',
    method: 'get',
    params: query
  })
}
// 查询活动列表详细
export function wasteActivityDetail(id) {
  return request({
    url: '/system/huishou/wasteActivity/' + id,
    method: 'get'
  })
}

// 新增活动列表
export function addwasteActivity(data) {
  return request({
    url: '/system/huishou/wasteActivity',
    method: 'post',
    data: data
  })
}

// 修改活动列表
export function updatewasteActivity(data) {
  return request({
    url: '/system/huishou/wasteActivity',
    method: 'put',
    data: data
  })
}

// 删除活动列表
export function delwasteActivity(id) {
  return request({
    url: '/system/huishou/wasteActivity/' + id,
    method: 'delete'
  })
}

// 查询活动列表报名记录
export function activityJoinlist(query) {
  return request({
    url: '/system/huishou/activityJoin/list',
    method: 'get',
    params: query
  })
}

// 查询回收站点列表
export function wasteSitelist(query) {
  return request({
    url: '/system/huishou/wasteSite/list',
    method: 'get',
    params: query
  })
}
// 查询回收站点详细
export function wasteSiteDetail(id) {
  return request({
    url: '/system/huishou/wasteSite/' + id,
    method: 'get'
  })
}

// 新增回收站点
export function addwasteSite(data) {
  return request({
    url: '/system/huishou/wasteSite',
    method: 'post',
    data: data
  })
}

// 修改回收站点列表
export function updatewasteSite(data) {
  return request({
    url: '/system/huishou/wasteSite',
    method: 'put',
    data: data
  })
}

// 删除回收站点列表
export function delwasteSite(id) {
  return request({
    url: '/system/huishou/wasteSite/' + id,
    method: 'delete'
  })
}
